package tfd.scala.squib.scenario.scenegraph.event;

import java.util.EventObject

import com.sun.scenario.scenegraph.{SGNode}

class baseEventWithNodeHelper[E <: EventObject](evtSymbol:Symbol) {
    
    def apply(delegate:(E, SGNode) => Unit) = (evtSymbol -> delegate)
    
    def apply(delegate: =>Unit) = {
        def helper(evt:E, node:SGNode) = {
        	delegate
        }
        (evtSymbol -> helper _)
    }
}
